﻿#ifndef ALARMHISTORYVIEW_H
#define ALARMHISTORYVIEW_H

#include <QGraphicsView>
#include "AlarmHistoryScene.h"

class AlarmHistoryView : public QGraphicsView
{
    Q_OBJECT
public:
    explicit AlarmHistoryView(QWidget *parent = 0);

    void addAlarmText(WarningLevel level, const QString &alarm);

protected:
    void resizeEvent(QResizeEvent *event) override;

private:
    AlarmHistoryScene *m_pScene = nullptr;
};

#endif // ALARMHISTORYVIEW_H
